import { Controller, Inject, Get } from '@nestjs/common';
import { StatisticsService } from './Statistics.service';
import { CheckAdmin } from '@/decorator/index.decorator';

@Controller('admin/statistics')
@CheckAdmin()
export class StatisticsController {
  @Inject(StatisticsService)
  private readonly statisticsService: StatisticsService;

  @Get()
  async getStatistics() {
    return await this.statisticsService.getStatistics();
  }
}
